<template>
	<div>
		<div style="display: inline-block;font-size:18px;margin-bottom: 15px;">
			<a href="#" @click="prev" style="text-decoration:none;font-size: 14px;">
				<icon-svg name="jiantou" style="width: 1.2em;height: 1.2em;position: relative;top: 0.3em;"></icon-svg>
				返回
			</a>
			<span style="display: inline-block;margin: 0 15px;color: #D9D9D9;">|</span>
			<span>用户详情</span>
		</div>
		<el-tabs v-model="activeName" @tab-click="handleClick">
			<el-tab-pane label="用户详情" name="first">
				<div class="detailtabel">
					<div class="table_main">
						<table>
							<tbody>
								<tr>
									<th>本月接单数量</th>
									<td>{{ tableData.monthAcceptCount ? `${tableData.monthAcceptCount}笔` : '0笔' }}</td>
									<th>本月充值金额</th>
									<td>{{ tableData.monthTopUpMoney ? `${tableData.monthTopUpMoney}元` : '0元' }}
									</td>
									<th>本月邀请数量</th>
									<td class="border-rt">
										{{ tableData.InviteCount ? `${tableData.InviteCount}人` : '0人' }}
									</td>
								</tr>
								<tr>
									<th>本月派单数量</th>
									<td>{{ tableData.monthGrantCount ? `${tableData.monthGrantCount}笔` : '0笔' }}</td>
									<th>本月提现金额</th>
									<td>{{ tableData.monthWithdrawMoney ? `${tableData.monthWithdrawMoney}元` : '0元' }}
									</td>
									<th>
										<span>师傅收益</span>
									</th>
									<td class="border-rt">
										<span
											v-if="tablenum.userType == '2' ">{{ tableData.riderMoneySum ? `${tableData.riderMoneySum}元` : '0元' }}</span>
										<span v-else> - </span>
									</td>

								</tr>
								<!-- <tr>
								  <th>创建时间</th>
								  <td>{{tablenum.createTime}}</td>
								  <th>积分</th>
								  <td style="color: rgb(245, 108, 108)">
								    {{ tablemoney.userMessage.jifen ? `${tablemoney.userMessage.jifen}分` : '0分' }}
								    <el-button size="mini" type="danger" style="color: #4f9dec;background: #fff;border: none;"
								      :disabled="!isAuth('userList:updateMoney')" @click="updateJf(tablenum.userId)">修改积分
								    </el-button>
								  </td>
								  <th></th>
								  <td class="border-rt">

								  </td>
								</tr> -->
								<tr>
									<th>师傅保证金</th>
									<td>{{ tablenum.cashDeposit ? `${tablenum.cashDeposit}元` : '0元' }}
										<el-button size="mini" type="danger"
											style="color: #4f9dec;background: #fff;border: none;"
											:disabled="!isAuth('userList:updateMoney')"
											@click="rechargenone(tablenum.userId,2)">修改保证金
										</el-button>
									</td>
									<th>师傅余额</th>
									<td style="color: rgb(245, 108, 108)">
										{{ tablenum.balance ? `${tablenum.balance}元` : '0元' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatejf')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="rechargenone(tablenum.userId,1)">修改</el-button>
									</td>
									<th>用户余额</th>
									<td class="border-rt">
										{{tableData.userMoney?tableData.userMoney:'0'}}
										<el-button size="mini" :disabled="!isAuth('userList:updatejf')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="rechargenone(tablenum.userId,3)">修改</el-button>
									</td>

								</tr>
								<tr>
									<th>师傅佣金比例</th>
									<td>{{tablenum.rate}}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
											@click="ageChange(6,tableData.userId,tablenum.rate)">修改</el-button>
									</td>
									<th>一级佣金比例</th>
									<td>{{tablenum.divideScale}}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
											@click="ageChange(0,tableData.userId,tablenum.divideScale)">修改</el-button>
									</td>
									<th>二级佣金比例</th>
									<td class="border-rt">{{tablenum.divideTwoScale}}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
											@click="ageChange(1,tableData.userId,tablenum.divideTwoScale)">修改</el-button>
									</td>

								</tr>
								<tr>
									<th>编号</th>
									<td>
										{{ tablenum.userId }}
									</td>
									<th>手机号</th>
									<td>{{ tablenum.phone ? tablenum.phone : '未绑定' }}
										<el-button size="mini" :disabled="!isAuth('userList:update')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="ageChangeP(tableData.userId,tablenum.phone)">修改
										</el-button>
									</td>
									<th>图像</th>
									<td class="border-rt">
										<img :src="tablenum.avatar ? tablenum.avatar : 'https://admin.tadaijia.cn/sqx_fast/logo.png'"
											width="80" height="80" />
										<!-- <span style="color: #4f9dec;cursor:pointer;"
											@click="userChange(tablenum)">修改</span> -->
											<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
												@click="userChange(tablenum)">修改</el-button>
									</td>
								</tr>
								<!-- <tr>
									<th>佣金比例</th>
									<td>{{ tablenum.divideScale}}</td>
									<th>推广员佣金比例</th>
									<td>{{ tableData.zhiRate ? `${tableData.zhiRate}` : '0' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(0,tableData.userId,tableData.zhiRate)">修改</el-button>
									</td>
									<th>代理商佣金比例</th>
									<td class="border-rt">{{ tableData.feiRate ? tableData.feiRate : '0' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(1,tableData.userId,tableData.feiRate)">修改</el-button>
									</td>
									<th>是否是推广员</th>
									<td class="border-rt">{{ tableData.isPromotion==1?'是':'否' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(2,tableData.userId,tableData.isPromotion)">修改</el-button>
									</td>
								</tr> -->
								<!-- <tr>
									<th>是否是推广员</th>
									<td>{{ tableData.isPromotion==1?'是':'否' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(2,tableData.userId,tableData.isPromotion)">修改</el-button>
									</td>
									<th>是否是代理商</th>
									<td>{{ tableData.isAgent==1?'是':'否' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(3,tableData.userId,tableData.isAgent)">修改</el-button>
									</td>
									<th>代理省市区</th>
									<td class=" border-rt">
										<span>{{tableData.province}}{{tableData.city}}{{tableData.district}}</span>
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
											@click="ageChange(5,tableData.userId)">修改</el-button>
									</td>
								</tr> -->
								<tr>
									<th>创建时间</th>
									<td>{{ tablenum.createTime }}
									</td>
									<th>年龄</th>
									<td>{{ tablenum.age }}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
											@click="userChange(tablenum)">修改</el-button>
									</td>
									<th>昵称</th>
									<td class="border-rt">
										{{ tablenum.userName }}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
											@click="userChange(tablenum)">修改</el-button>
									</td>
								</tr>
								<tr>
									<th>邀请人邀请码</th>
									<td>{{ tablenum.inviterCode }}</td>
									<th>微信名称</th>
									<td>{{ tablenum.nickName }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
										@click="userChange(tablenum)">修改</el-button>

									</td>
									<th>支付宝姓名</th>
									<td class="border-rt">
										{{ tablenum.zhiFuBaoName ? tablenum.zhiFuBaoName : '未绑定' }}
									</td>
								</tr>

								<tr>
									<th>邀请码</th>
									<td>{{ tablenum.invitationCode }}</td>
									<th>支付宝账号</th>
									<td>
										{{ tablenum.zhiFuBao ? tablenum.zhiFuBao : '未绑定' }}
									</td>
									<th>用户状态</th>
									<td class="border-rt">
										<span v-if="tablenum.status == 1 ">正常</span>
										<span v-if="tablenum.status == 2 " style="color: #f56c6c;">禁用</span>
										<!-- <span style="color: #4f9dec;cursor:pointer;"
											@click="stateChange(tablenum.status,tablenum.userId)">更改状态</span> -->
										<el-button size="mini" :disabled="!isAuth('userList:updateStatus')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="stateChange(tablenum.status,tablenum.userId)">
											更改状态</el-button>
									</td>
								</tr>
								<tr>
									<th>苹果Id</th>
									<td>
										{{ tablenum.appleId?tablenum.appleId:'未绑定' }}

									</td>
									<th>是否实名</th>
									<td>
										<span v-if="tablenum.checkCertification == '0' ">待审核</span>
										<span v-else-if="tablenum.checkCertification == '1' ">已实名</span>
										<span v-else>未实名</span>
										<!-- <el-button size="mini" :disabled="!isAuth('userList:update')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="ageChange(2,tablenum.userId,tablenum.checkCertification)">
											修改</el-button> -->
									</td>
									<th>openId</th>
									<td class="border-rt">
										{{ tablenum.openId ? tablenum.openId : '未绑定' }}
									</td>
								</tr>
								<tr>
									<th>是否是新用户</th>
									<td>{{ tablenum.newUserFlag==1?'新用户':'老用户' }}</td>
									<th>是否是普通用户</th>
									<td>
										<span v-if="tablenum.openId||tablenum.wxOpenId">是</span>
										<span v-else>否</span>
									</td>
									<th>是否是师傅用户</th>
									<td class="border-rt">
										<span v-if="tablenum.riderOpenId||tablenum.riderWxOpenId">是</span>
										<span v-else>否</span>
									</td>
								</tr>
								<tr>
									<th>身份证号</th>
									<td>
										{{ tablenum.checkCertification == '1'&&tablenum.identityCardNumber?tablenum.identityCardNumber:'暂无' }}

									</td>
									<th>身份证正面照</th>
									<td>
										<img v-if="tablenum.identityCardFront&&tablenum.checkCertification == '1'"
											:src="tablenum.identityCardFront" width="80" height="80" />
										<span v-else>暂无</span>
									</td>
									<th>身份证背面照</th>
									<td class="border-rt">
										<img v-if="tablenum.identityCardVerso&&tablenum.checkCertification == '1'"
											:src="tablenum.identityCardVerso" width="80" height="80" />
										<span v-else>暂无</span>
									</td>
								</tr>
								<tr>
									<th>手持身份证照</th>
									<td>
										<img v-if="tablenum.selfIdentityCard&&tablenum.checkCertification == '1'"
											:src="tablenum.selfIdentityCard" width="80" height="80" />
										<span v-else>暂无</span>
									</td>
									<th>当前纬度</th>
									<td>
										{{ tablenum.stationLat?tablenum.stationLat:'暂无' }}
									</td>
									<th>当前经度</th>
									<td class="border-rt">
										{{ tablenum.stationLng?tablenum.stationLng:'暂无' }}
									</td>
								</tr>
								<tr>
									<th>更新时间</th>
									<td>
										<span>{{ tablenum.updateTime?tablenum.updateTime:'暂无' }}</span>
									</td>
									<th>收款二维码</th>
									<td>
										<div v-if="tablenum.cashQrCode == null || tablenum.cashQrCode == ''">
											暂无收款二维码
										</div>
										<div v-else style="display:flex;flex-wrap: wrap;">
											<div style="margin: 2px;">
												<el-popover placement="top-start" title="" trigger="hover">
													<img style="width: 50px; height: 50px" :src="tablenum.cashQrCode"
														alt="" slot="reference">
													<img style="width: 300px; height: 300px" :src="tablenum.cashQrCode"
														alt="">
												</el-popover>
											</div>
										</div>
									</td>
									<th>渠道来源
									</th>
									<td class="border-rt">{{tablenum.platform }}
									</td>
								</tr>
								<tr>
									<th class="border-bt">师傅状态</th>
									<td class="border-bt">
										<div v-if="tablenum.riderOpenId||tablenum.riderWxOpenId">
											<span v-if="tablenum.onLineFlag==1">在线接单</span>
											<span v-else>停止接单</span>
										</div>
									</td>
									<th class="border-bt">信用分</th>
									<td class="border-bt">
										{{tablenum.creditScore?tablenum.creditScore:0}}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
											@click="creditScoreChange(tablenum.creditScore)">修改</el-button>
									</td>
									<th class="border-bt">师傅等级</th>
									<td class="border-bt border-rt">
                    <div v-if="tablenum.userType==2">
                      <span v-if="tablenum.riderLevel==1">普通</span>
                      <span v-else-if="tablenum.riderLevel==2">优享</span>
                      <span v-else-if="tablenum.riderLevel==3">超级优享</span>
                      <el-button size="mini" style="color: #4f9dec;background: #fff;border: none;" :disabled="!isAuth('userList:update')"
                      	@click="userChange(tablenum)">修改</el-button>
                    </div>
                    <span v-else> - </span>
                  </td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</el-tab-pane>
			<el-tab-pane label="推广员收益明细" name="tuiguangyuan">
				<el-table v-loading="tableDataLoading" :data="dailituiguangData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.money }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeDl" @current-change="handleCurrentChangeDl"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="dailituiguangData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- <el-tab-pane label="代理商收益明细" name="dailishang">
				<el-table v-loading="tableDataLoading" :data="dailituiguangData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.money }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeDl" @current-change="handleCurrentChangeDl"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="dailituiguangData.total">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<el-tab-pane label="我的发布" name="third">
				<div>
					<!-- <div style="position: relative;display: inline-block;">
						<span>标题名称：</span>
						<el-input style="width: 200px;" @keydown.enter.native="phoneSelect" placeholder="请输入标题名称"
							v-model="search">
						</el-input>&nbsp;&nbsp;
					</div> -->
					<!-- <el-button style="margin:10px;" size="mini" type="primary" icon="document" @click="phoneSelect">查询
					</el-button>
					<el-button style="margin:10px;" size="mini" type="primary" icon="document" @click="cleans2">重置
					</el-button> -->
				</div>
				<el-table v-loading="tableDataLoading" :data="userData.list">

					<el-table-column fixed prop="indentId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="indentType" label="订单类型">
						<template slot-scope="scope">
							<div v-if="scope.row.indentType==1">即时代驾</div>
							<div v-if="scope.row.indentType==2">朋友代叫</div>
							<div v-if="scope.row.indentType==3">预约代驾</div>
						</template>
					</el-table-column>
					<el-table-column prop="indentNumber" label="订单号"></el-table-column>
					<el-table-column prop="shipAddressDetail" label="乘客信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>乘客姓名:{{scope.row.customName}} </div>
								<div>乘客电话: {{scope.row.customPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="shipAddressDetail" label="下单人信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>下单人姓名:{{scope.row.shipUserName}} </div>
								<div>下单人电话: {{scope.row.shipUserPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="deilveryAddressDetail" label="下单地址" width="200">
						<template slot-scope="scope">
							<div>{{scope.row.shipAddress}}</div>
							<div>目的经纬度：{{scope.row.shipAddressLatitude}} {{scope.row.shipAddressLongitude}}</div>
						</template>
					</el-table-column>
					<el-table-column prop="deilveryAddressDetail" label="目的地址" width="200">
						<template slot-scope="scope">
							<div>{{scope.row.deliveryAddress}}</div>
							<div>目的经纬度：{{scope.row.deliveryAddressLatitude}} {{scope.row.deliveryAddressLongitude}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="shipAddressDetail" label="师傅信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>师傅姓名:{{scope.row.riderNickName}} </div>
								<div>师傅电话: {{scope.row.riderPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="riderDistance" label="师傅距离起始/终点位置距离(米)" width="140">
					</el-table-column>

					<el-table-column prop="distance" label="预估总路程(公里)"></el-table-column>
					<el-table-column prop="indentBasicsMoney" label="基础价格">
					</el-table-column>
					<el-table-column prop="userScaleMoney" label="上级抽佣金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;cursor: pointer;"
								@click="updatesvideo(scope.row.userScaleUserId)">
								{{scope.row.userScaleMoney?scope.row.userScaleMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="userTwoMoney" label="上上级抽佣金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;cursor: pointer;" @click="updatesvideo(scope.row.userTwoUserId)">
								{{scope.row.userTwoMoney?scope.row.userTwoMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="platformMoney" label="平台收入">
					</el-table-column>
					<el-table-column prop="riderRewardMoney" label="师傅奖励金额">
					</el-table-column>
					<el-table-column prop="riderMoney" label="师傅收入">
					</el-table-column>
					<el-table-column prop="couponMoney" label="优惠券抵扣金额">
					</el-table-column>
					<el-table-column prop="indentMoney" label="支付金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;">
								{{scope.row.indentMoney?scope.row.indentMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="riderFine" label="师傅取消订单罚金">
					</el-table-column>
					<el-table-column prop="hopeTime" label="预约时间" width="160">
					</el-table-column>
					<el-table-column prop="modeOfPayment" label="支付方式">
						<template slot-scope="scope">
							<div v-if="scope.row.modeOfPayment==1">微信</div>
							<div v-if="scope.row.modeOfPayment==2">支付宝</div>
							<div v-if="scope.row.modeOfPayment==0">余额</div>
						</template>
					</el-table-column>


					<el-table-column prop="receivingTime" label="接单时间" width="160">
					</el-table-column>
					<el-table-column prop="finishTime" label="完成时间" width="160">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>

					<el-table-column prop="indentState" label="状态" fixed="right">
						<template slot-scope="scope">
							<div v-if="scope.row.indentState==0">待接单</div>
							<div v-if="scope.row.indentState==1">已接单</div>
							<div v-if="scope.row.indentState==2">进行中</div>
							<div v-if="scope.row.indentState==3">待支付</div>
							<div v-if="scope.row.indentState==4">已完成</div>
							<div v-if="scope.row.indentState==5">已取消</div>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="userData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的接单" name="jiedan">
				<div>
					<!-- <div style="position: relative;display: inline-block;">
						<span>标题名称：</span>
						<el-input style="width: 200px;" @keydown.enter.native="phoneSelect" placeholder="请输入标题名称"
							v-model="search">
						</el-input>&nbsp;&nbsp;
					</div>
					<el-button style="margin:10px;" size="mini" type="primary" icon="document" @click="phoneSelect">查询
					</el-button>
					<el-button style="margin:10px;" size="mini" type="primary" icon="document" @click="cleans2">重置
					</el-button> -->
				</div>
				<el-table v-loading="tableDataLoading" :data="userDataJ.list">

					<el-table-column fixed prop="indentId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="indentId" label="下单人昵称" width="120">
						<template slot-scope="scope">
							<div style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)">
								{{scope.row.shipUserName}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="shipUserPhone" label="下单手机号"></el-table-column>
					<el-table-column prop="indentType" label="订单类型">
						<template slot-scope="scope">
							<div v-if="scope.row.indentType==1">即时代驾</div>
							<div v-if="scope.row.indentType==2">朋友代叫</div>
							<div v-if="scope.row.indentType==3">预约代驾</div>
						</template>
					</el-table-column>
					<el-table-column prop="indentNumber" label="订单号"></el-table-column>
					<el-table-column prop="shipAddressDetail" label="乘客信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>乘客姓名:{{scope.row.customName}} </div>
								<div>乘客电话: {{scope.row.customPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="shipAddressDetail" label="下单人信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>下单人姓名:{{scope.row.shipUserName}} </div>
								<div>下单人电话: {{scope.row.shipUserPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="deilveryAddressDetail" label="下单地址" width="200">
						<template slot-scope="scope">
							<div>{{scope.row.shipAddress}}</div>
							<div>目的经纬度：{{scope.row.shipAddressLatitude}} {{scope.row.shipAddressLongitude}}</div>
						</template>
					</el-table-column>
					<el-table-column prop="deilveryAddressDetail" label="目的地址" width="200">
						<template slot-scope="scope">
							<div>{{scope.row.deliveryAddress}}</div>
							<div>目的经纬度：{{scope.row.deliveryAddressLatitude}} {{scope.row.deliveryAddressLongitude}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="riderDistance" label="师傅距离起始/终点位置距离(米)" width="140">
					</el-table-column>

					<el-table-column prop="distance" label="预估总路程(公里)"></el-table-column>
					<el-table-column prop="indentBasicsMoney" label="基础价格">
					</el-table-column>
					<el-table-column prop="userScaleMoney" label="上级抽佣金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;cursor: pointer;" @click="updates(scope.row.userScaleUserId)">
								{{scope.row.userScaleMoney?scope.row.userScaleMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="userTwoMoney" label="上上级抽佣金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;cursor: pointer;" @click="updates(scope.row.userTwoUserId)">
								{{scope.row.userTwoMoney?scope.row.userTwoMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="platformMoney" label="平台收入">
					</el-table-column>
					<el-table-column prop="riderRewardMoney" label="师傅奖励金额">
					</el-table-column>
					<el-table-column prop="riderMoney" label="师傅收入">
					</el-table-column>
					<el-table-column prop="couponMoney" label="优惠券抵扣金额">
					</el-table-column>
					<el-table-column prop="indentMoney" label="支付金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;">
								{{scope.row.indentMoney?scope.row.indentMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="userFine" label="用户取消订单罚金">
					</el-table-column>
					<el-table-column prop="riderFine" label="师傅取消订单罚金">
					</el-table-column>
					<!-- <el-table-column prop="itemCodeFlag" label="是否有确认码">
          	<template slot-scope="scope">
          		<div v-if="scope.row.itemCodeFlag==1">没有收货码</div>
          		<div v-if="scope.row.itemCodeFlag==0">有收货码</div>
          	</template>
          </el-table-column> -->
					<el-table-column prop="remarks" label="备注">
					</el-table-column>
					<!-- <el-table-column prop="itemCode" label="确认码">
          	<template slot-scope="scope">
          		<div v-if="scope.row.itemCodeFlag==1">-</div>
          		<div v-else>{{scope.row.itemCode}}</div>
          	</template>
          </el-table-column> -->
					<el-table-column prop="modeOfPayment" label="支付方式">
						<template slot-scope="scope">
							<div v-if="scope.row.modeOfPayment==1">微信</div>
							<div v-if="scope.row.modeOfPayment==2">支付宝</div>
							<div v-if="scope.row.modeOfPayment==3">余额</div>
						</template>
					</el-table-column>
					<el-table-column prop="receivingTime" label="接单时间" width="160">
					</el-table-column>
					<el-table-column prop="finishTime" label="完成时间" width="160">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>

					<el-table-column prop="indentState" label="状态" fixed="right">
						<template slot-scope="scope">
							<div v-if="scope.row.indentState==0">待接单</div>
							<div v-if="scope.row.indentState==1">已接单</div>
							<div v-if="scope.row.indentState==2">进行中</div>
							<div v-if="scope.row.indentState==3">待支付</div>
							<div v-if="scope.row.indentState==4">已完成</div>
							<div v-if="scope.row.indentState==5">已取消</div>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange7" @current-change="handleCurrentChange7"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="userDataJ.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="提现记录" name="sixth">
				<el-table v-loading="tableDataLoading" :data="withdrawData.list">
					<el-table-column fixed prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="zhifubao" label="支付宝账号" width="150">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;"
								@click="updates(scope.row.userId)">{{scope.row.zhifubao ? scope.row.zhifubao : 'null'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="zhifubaoName" label="支付宝名称" width="100">
						<template slot-scope="scope">
							<span>{{scope.row.zhifubaoName ? scope.row.zhifubaoName : 'null'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="phone" label="手机号" width="150">
					</el-table-column>
					<el-table-column prop="money" label="提现金额">
					</el-table-column>
					<el-table-column prop="state" label="状态">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 0">待转账</span>
							<span v-if="scope.row.state == 1">已转账</span>
							<span v-if="scope.row.state == -1">已拒绝</span>
						</template>
					</el-table-column>
					<el-table-column prop="refund" label="拒绝原因" width="220">
					</el-table-column>
					<el-table-column prop="createAt" label="申请时间" width="170">
					</el-table-column>
					<el-table-column prop="outAt" label="转账/拒绝时间" width="180">
					</el-table-column>
					<el-table-column prop="orderNumber" label="转账订单号" width="150">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="withdrawData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="钱包明细" name="eighth">
				<el-table v-loading="tableDataLoading" :data="walletData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题" width="220"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #009900;" v-if="scope.row.type==1"> + {{ scope.row.money }}</span>
							<span style="color: #f56c6c;" v-if="scope.row.type==2"> - {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange3" @current-change="handleCurrentChange3"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="walletData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="充值明细" name="seventh">
				<div style="display: inline-block;">
					<span>开始时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="startTime" align="right"
						type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
					</el-date-picker>&nbsp;&nbsp;&nbsp;
					<span>截止时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="endTime" align="right" type="date"
						format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
					</el-date-picker>
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="timeDate2">
						查询</el-button>
				</div>
				<el-table v-loading="tableDataLoading" :data="rechargeData.list">
					<el-table-column prop="id" label="编号" width="50"></el-table-column>
					<el-table-column prop="orderId" label="充值订单号" width="200"></el-table-column>
					<el-table-column prop="money" label="充值金额"></el-table-column>
					<el-table-column prop="userId" label="会员编号"></el-table-column>
					<el-table-column label="分类">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 1">微信</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 2">支付宝</span>
						</template>
					</el-table-column>
					<el-table-column label="状态">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 0">待支付</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 1">支付成功</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 2">支付失败</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="170">
					</el-table-column>
					<el-table-column prop="payTime" label="支付时间" width="170">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange4" @current-change="handleCurrentChange4"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="rechargeData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="保证金管理" name="qishoushouyi">
				<el-table v-loading="tableDataLoading" :data="baozhengjinData.list">
					<el-table-column type="selection">
					</el-table-column>
					<el-table-column fixed prop="id" label="编号" width="80">
					</el-table-column>
					<!-- <el-table-column prop = "nickName" label = "用户昵称" width = "120">
						<template slot-scope="scope">
							<div style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{scope.row.nickName?scope.row.nickName:'未绑定'}}</div>
						</template>
					</el-table-column> -->
					<el-table-column prop="money" label="保证金" width="100">
					</el-table-column>
					<el-table-column prop="phone" label="手机号" width="150">
						<template slot-scope="scope">
							<span>{{scope.row.phone ? scope.row.phone : '暂无'}}</span>
						</template>
					</el-table-column>

					<el-table-column prop="title" label="标题">
					</el-table-column>
					<el-table-column prop="content" label="内容">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="150">
					</el-table-column>
					<el-table-column prop="type" label="状态" width="100" fixed="right">
						<template slot-scope="scope">
							<span v-if="scope.row.type == 1">已交保证金</span>
							<span v-if="scope.row.type == 2">已退保证金</span>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange11" @current-change="handleCurrentChange11"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="baozhengjinData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的申诉" name="ninth">
				<div style="margin-right:2%;">
					<span>状态：</span>
					<el-select v-model="complaintState" style="width:150px;margin-left: 10px;"
						@change="animeDat(complaintState)">
						<el-option v-for="item in statesnum" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;&nbsp;
					<div style="position: relative;display: inline-block;">
						<span>订单编号：</span>
						<el-input style="width: 200px;" @keydown.enter.native="select" placeholder="请输入订单编号"
							v-model="indentNumber"></el-input>&nbsp;&nbsp;
					</div>
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="select">查询
					</el-button>
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleans">重置
					</el-button>
				</div>
				<el-table v-loading="tableDataLoading" :data="sendData.records">
					<el-table-column fixed prop="illegalId" label="编号" width="80">
						<!-- <template slot-scope="scope">
							<span>{{scope.$index+1}}</span>
						</template> -->
					</el-table-column>
					<el-table-column prop="indentNumber" label="订单号" width="200" align="center">
					</el-table-column>
					<el-table-column prop="illegal" label="投诉类型" width="150">
						<!-- <template slot-scope="scope">
							<div v-if="scope.row.complaintType=='1'">取消订单</div>
							<div v-if="scope.row.complaintType=='2'">拒绝系统推单</div>
							<div v-if="scope.row.complaintType=='3'">残损违规</div>
						</template> -->
					</el-table-column>
					<el-table-column prop="wrongExplain" label="违规说明" width="300"></el-table-column>
					<el-table-column prop="auditMessage" label="处理结果" width="120" align="center">
					</el-table-column>
					<el-table-column prop="complaintTime" label="投诉时间" width="100"></el-table-column>
					<!-- <el-table-column prop="appealType" label="申诉类型" width="100">
						<template slot-scope="scope">
							<div v-if="scope.row.appealType=='1'">取消订单</div>
							<div v-if="scope.row.appealType=='2'">拒绝系统推单</div>
							<div v-if="scope.row.appealType=='3'">残损违规</div>
						</template>
					</el-table-column> -->
					<el-table-column prop="appealMessage" label="申诉理由" align="center">
					</el-table-column>
					<el-table-column prop="appealTime" label="申诉时间" width="100"></el-table-column>
					<el-table-column prop="complaintState" label="申诉状态" width="100">
						<template slot-scope="scope">
							<span v-if="scope.row.complaintState=='1'">可申诉</span>
							<span v-if="scope.row.complaintState=='2'">申诉中</span>
							<span v-if="scope.row.complaintState=='3'">申诉未通过</span>
							<!-- <span v-if="scope.row.complaintState=='4'">申诉未通过</span> -->
							<span v-if="scope.row.complaintState=='4'">申诉通过</span>
              <span v-if="scope.row.complaintState=='5'">待审核</span>
              <span v-if="scope.row.complaintState=='6'">投诉未通过</span>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange5" @current-change="handleCurrentChange5"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="sendData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的优惠券" name="youhuiquan">
				<div style="margin:2% 0;display: inline-block;">
					<span>优惠券类型:</span>
					<el-select v-model="youhunajuan" placeholder="请选择优惠券类型" @change="animeDat1(youhunajuan)">
						<el-option v-for="item in youhunajuanoptions" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>&emsp;&emsp;
				<div style="margin:2% 0;display: inline-block;">
					<span>状态:</span>
					<el-select v-model="statusyouhunjuan" placeholder="请选择状态" @change="animeDat2a(statusyouhunjuan)">
						<el-option v-for="item in statusyouhunjuanoptions" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>&emsp;&emsp;
				<div style="display: inline-block;">
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleansq">重置
					</el-button>
				</div>
				<el-table v-loading="tableDataLoading" :data="youhuiquanData.records">
					<el-table-column fixed prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="couponName" label="优惠券名称">
					</el-table-column>
					<el-table-column prop="couponPicture" label="优惠券图片">
						<template slot-scope="scope">
							<img :src="scope.row.couponPicture" style="width: 50px; height: 50px;" />
						</template>
					</el-table-column>
					<el-table-column prop="money" label="优惠券金额">
					</el-table-column>
					<el-table-column prop="couponType" label="优惠券类型">
						<template slot-scope="scope">
							<span v-if="scope.row.couponType==0">全部可用</span>
							<span v-else-if="scope.row.couponType==1">即时代驾</span>
							<span v-else-if="scope.row.couponType==2">朋友代叫</span>
							<span v-else-if="scope.row.couponType==3">预约代驾</span>
						</template>
					</el-table-column>
					<el-table-column prop="minMoney" label="最低消费">
					</el-table-column>
					<el-table-column prop="status" label="使用类型">
						<template slot-scope="scope">
							<span v-if="scope.row.status==0">正常</span>
							<span v-else-if="scope.row.status==1">已使用</span>
							<span v-else-if="scope.row.status==2">已失效</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="时间">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange12" @current-change="handleCurrentChange12"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next" :total="youhuiquanData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- <el-tab-pane label="发票记录" name="fapiao">
				<el-button style='margin:0 0 20px 20px;' size="mini" type="primary" icon="document" @click="addfpClick()">添加
				</el-button>
				<el-table width="780px" v-loading="tableDataLoading4" :data="fapiaoData.records">
					<el-table-column prop="invoiceId" label="编号" width="50" fixed="left"></el-table-column>
					<el-table-column prop="nickName" label="用户名" fixed="left">
						<template slot-scope="scope">
							<span style="color: #f56c6c;cursor:pointer"
								@click="updates(scope.row)">{{ scope.row.nickName }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="userEmail" label="邮箱">
					</el-table-column>
					<el-table-column prop="userPhone" label="用户电话">
					</el-table-column>
					<el-table-column prop="indentNumber" label="订单号" width="170">
						<template slot-scope="scope">
							<div v-if="scope.row.indentNumber">
								<div v-for="(item,index) in scope.row.indentNumber.split(',')">{{item}} </div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="invoiceType" label="发票类型">
						<template slot-scope="scope">
							<span v-if="scope.row.invoiceType==1">公司</span>
							<span v-if="scope.row.invoiceType==2">个人</span>
						</template>
					</el-table-column>
					<el-table-column prop="invoiceTitle" label="发票内容">
					</el-table-column>
					<el-table-column prop="invoiceMoney" label="发票金额">
					</el-table-column>
					<el-table-column prop="bankAddress" label="注册地址" width="200">
					</el-table-column>
					<el-table-column prop="bankDeposit" label="开户行">
					</el-table-column>
					<el-table-column prop="bankNumber" label="银行卡号">
					</el-table-column>
					<el-table-column prop="bankPhone" label="注册电话">
					</el-table-column>
					<el-table-column prop="invoiceHeader" label="发票抬头">
					</el-table-column>
					<el-table-column prop="invoiceTitle" label="发票标题">
					</el-table-column>
					<el-table-column prop="status" label="发票状态" fixed="right">
						<template slot-scope="scope">
							<span v-if="scope.row.status==1" style="color:red">待开票</span>
							<span v-if="scope.row.status==2" style="color: darkgreen;">已开票</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="170">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeF" @current-change="handleCurrentChangeF"
						:page-sizes="[5, 10, 15, 20]" :page-size="size2" :current-page="page2"
						layout="total,sizes, prev, pager, next,jumper" :total="fapiaoData.total">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<el-tab-pane label="我的消息" name="fankui">
				<el-table v-loading="tableDataLoading" :data="messageData.list">
					<el-table-column prop="id" label="编号" width="80"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="createAt" label="创建时间" width="160"></el-table-column>

				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange8" @current-change="handleCurrentChange8"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="messageData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的评价" name="pinglun">
				<div style="margin:5px;display: inline-block;">
					<span>是否满意：</span>
					<el-select v-model="campus" style="width:150px;margin-left: 10px;" @change="animeDat2()">
						<el-option v-for="item in homeData1" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;
				</div>
				<el-table v-loading="tableDataLoading" :data="autonymData.records">
					<el-table-column prop="evaluateId" label="编号" width="80">
					</el-table-column>

					<el-table-column prop="indentNumber" label="评价订单号" width="200">
					</el-table-column>

					<el-table-column prop="indent" label="师傅昵称" width="150">
						<template slot-scope="scope">
							<span v-if="scope.row.riderUser&&scope.row.riderUser.nickName"
								style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.riderUserId)">
								{{ scope.row.riderUser.nickName ? scope.row.riderUser.nickName : '未绑定' }}
							</span>
						</template>
					</el-table-column>
					<el-table-column prop="evaluateMessage" label="评价内容">
					</el-table-column>
					<el-table-column prop="satisfactionFlag" label="是否满意" width="160">
						<template slot-scope="scope">
							<span v-if="scope.row.satisfactionFlag == '0'">满意</span>
							<span v-if="scope.row.satisfactionFlag == '1'">不满意</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="评价时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange9" @current-change="handleCurrentChange9"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="autonymData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="师傅的评价" name="qishou">
				<div style="margin:5px;display: inline-block;">
					<span>是否满意：</span>
					<el-select v-model="campus" style="width:150px;margin-left: 10px;" @change="animeDat2()">
						<el-option v-for="item in homeData1" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;
				</div>
				<el-table v-loading="tableDataLoading" :data="autonymData.records">
					<el-table-column prop="evaluateId" label="编号" width="80">
					</el-table-column>

					<el-table-column prop="indentNumber" label="评价订单号" width="200">
					</el-table-column>
					<el-table-column prop="indent" label="评价用户" width="150">
						<template slot-scope="scope">
							<span v-if="scope.row.user&&scope.row.user.nickName" style="color: #4f9dec;cursor: pointer;"
								@click="updates(scope.row.userId)">
								{{ scope.row.user.nickName ? scope.row.user.nickName : '未绑定' }}
							</span>
						</template>
					</el-table-column>

					<el-table-column prop="evaluateMessage" label="评价内容">
					</el-table-column>
					<el-table-column prop="satisfactionFlag" label="是否满意" width="160">
						<template slot-scope="scope">
							<span v-if="scope.row.satisfactionFlag == '0'">满意</span>
							<span v-if="scope.row.satisfactionFlag == '1'">不满意</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="评价时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange9" @current-change="handleCurrentChange9"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="autonymData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="收益统计" name="shouyi">
				<div>
					<span>时间类型：</span>
					<el-select v-model="flag" style="width:150px;margin-left: 10px;" @change="orderfenxi">
						<el-option v-for="item in flags" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;
					<el-date-picker style="width: 200px;margin-left: 10px;" v-model="info.stockDate" align="right"
						type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间"
						@change="animeOrder">
					</el-date-picker>
				</div>
				<div>
					<el-row>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">收益统计</div>
									<div class="text_color">
										<span>{{tableData2.incomeday ? tableData2.incomeday : 0}}</span>元
									</div>
								</div>
							</div>
						</el-col>
						<el-col :span="6" class="cards">
							<div class="box">
								<div class="box_num">
									<div class="box_color">订单数量</div>
									<div class="text_color">
										<span>{{tableData2.indentCount ? tableData2.indentCount : 0}}</span>单
									</div>
								</div>
							</div>
						</el-col>
					</el-row>
				</div>
				<el-table v-loading="tableDataLoading" :data="tableData3.list">
					<el-table-column fixed prop="indentId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="indentId" label="下单人昵称" width="120">
						<template slot-scope="scope">
							<div style="color: #4f9dec;cursor: pointer;" @click="updatesvideo(scope.row.userId)">
								{{scope.row.shipUserName}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="shipUserPhone" label="下单手机号"></el-table-column>
					<el-table-column prop="indentType" label="订单类型">
						<template slot-scope="scope">
							<div v-if="scope.row.indentType==1">即时代驾</div>
							<div v-if="scope.row.indentType==2">朋友代叫</div>
							<div v-if="scope.row.indentType==3">预约代驾</div>
						</template>
					</el-table-column>
					<el-table-column prop="indentNumber" label="订单号"></el-table-column>
					<el-table-column prop="shipAddressDetail" label="乘客信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>乘客姓名:{{scope.row.customName}} </div>
								<div>乘客电话: {{scope.row.customPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="shipAddressDetail" label="下单人信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>下单人姓名:{{scope.row.shipUserName}} </div>
								<div>下单人电话: {{scope.row.shipUserPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="deilveryAddressDetail" label="下单地址" width="200">
						<template slot-scope="scope">
							<div>{{scope.row.shipAddress}}</div>
							<div>目的经纬度：{{scope.row.shipAddressLatitude}} {{scope.row.shipAddressLongitude}}</div>
						</template>
					</el-table-column>
					<el-table-column prop="deilveryAddressDetail" label="目的地址" width="200">
						<template slot-scope="scope">
							<div>{{scope.row.deliveryAddress}}</div>
							<div>目的经纬度：{{scope.row.deliveryAddressLatitude}} {{scope.row.deliveryAddressLongitude}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="shipAddressDetail" label="师傅信息" width="200">
						<template slot-scope="scope">
							<div>
								<div>师傅姓名:{{scope.row.riderNickName}} </div>
								<div>师傅电话: {{scope.row.riderPhone}}</div>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="distance" label="预估总路程(公里)"></el-table-column>
					<el-table-column prop="indentBasicsMoney" label="基础价格">
					</el-table-column>
					<el-table-column prop="userScaleMoney" label="上级抽佣金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;cursor: pointer;" @click="updates(scope.row.userScaleUserId)">
								{{scope.row.userScaleMoney?scope.row.userScaleMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="userTwoMoney" label="上上级抽佣金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;cursor: pointer;" @click="updates(scope.row.userTwoUserId)">
								{{scope.row.userTwoMoney?scope.row.userTwoMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="platformMoney" label="平台收入">
					</el-table-column>
					<el-table-column prop="riderRewardMoney" label="师傅奖励金额">
					</el-table-column>
					<el-table-column prop="riderMoney" label="师傅收入">
					</el-table-column>
					<el-table-column prop="couponMoney" label="优惠券抵扣金额">
					</el-table-column>
					<el-table-column prop="indentMoney" label="支付金额">
						<template slot-scope="scope">
							<div style="color: #f56c6c;">
								{{scope.row.indentMoney?scope.row.indentMoney:'0'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="userFine" label="用户取消订单罚金">
					</el-table-column>
					<el-table-column prop="riderFine" label="师傅取消订单罚金">
					</el-table-column>
					<el-table-column prop="remarks" label="备注">
					</el-table-column>
					<el-table-column prop="modeOfPayment" label="支付方式">
						<template slot-scope="scope">
							<div v-if="scope.row.modeOfPayment==1">微信</div>
							<div v-if="scope.row.modeOfPayment==2">支付宝</div>
							<div v-if="scope.row.modeOfPayment==3">余额</div>
						</template>
					</el-table-column>
					<el-table-column prop="finishTime" label="完成时间" width="160">
					</el-table-column>
					<el-table-column prop="indentState" label="状态" fixed="right">
						<template slot-scope="scope">
							<div v-if="scope.row.indentState==0">待接单</div>
							<div v-if="scope.row.indentState==1">已接单</div>
							<div v-if="scope.row.indentState==2">进行中</div>
							<div v-if="scope.row.indentState==3">待支付</div>
							<div v-if="scope.row.indentState==4">已完成</div>
							<div v-if="scope.row.indentState==5">已取消</div>
						</template>
					</el-table-column>

				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange10" @current-change="handleCurrentChange10"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="tableData3.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- /v-loading="tableDataLoading" -->
			<el-tab-pane label="我的地址" name="dizhi">
				<el-table :data="dizhiData.records">
					<el-table-column prop="addressId" label="编号" width="80"></el-table-column>
					<!-- <el-table-column prop="userName" label="姓名" width="100"></el-table-column>
          <el-table-column prop="userPhone" label="电话" width="120"></el-table-column> -->
					<el-table-column prop="money" label="地址">
						<template slot-scope="scope">
							<span>{{scope.row.province}}{{scope.row.city}}{{scope.row.county}}{{scope.row.address}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="lng" label="经度" width="160"></el-table-column>
					<el-table-column prop="lat" label="纬度" width="160"></el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160"></el-table-column>
					<!-- <el-table-column fixed="right" prop="isDefault" label="是否默认" width="100">
						<template slot-scope="scope">
							<span style="color: #4f9dec;" v-if="scope.row.isDefault === 0 ">否</span>
							<span style="color: red;" v-if="scope.row.isDefault === 1 ">是</span>
						</template>
					</el-table-column> -->
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeDz" @current-change="handleCurrentChangeDz"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="dizhiData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="信用分明细" name="xinyongfen">
				<el-table v-loading="tableDataLoading" :data="tableDataXyf.records">
					<el-table-column prop="recordId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="sysUserName" label="操作用户" width="150">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;">{{scope.row.sysUserName ? scope.row.sysUserName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="lastCreditScore" label="修改前信用分"></el-table-column>
					<el-table-column prop="nextCreditScore" label="修改后信用分"></el-table-column>

					<el-table-column prop="num" label="信用分" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.num }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.num }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="reason" label="备注"></el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeXyf" @current-change="handleCurrentChangeXyf"
						:page-sizes="[10, 20, 30, 40]" :page-size="size1" :current-page="page1"
						layout="total,sizes, prev, pager, next,jumper" :total="tableDataXyf.total">
					</el-pagination>
				</div>
      </el-tab-pane>
      <el-tab-pane label="师傅在线时长" name="sfzxsc">
        <el-table v-loading="tableDataLoading" :data="tableDataZxsc.records">
        	<el-table-column prop="lineId" label="编号" width="80">
        	</el-table-column>
        	<el-table-column prop="startTime" label="上线时间"></el-table-column>
        	<el-table-column prop="endTime" label="下线时间"></el-table-column>
        	<el-table-column prop="lineDuration" label="在线时长"></el-table-column>
        </el-table>
        <div style="text-align: center;margin-top: 10px;">
        	<el-pagination @size-change="handleSizeChangeZxsc" @current-change="handleCurrentChangeZxsc"
        		:page-sizes="[10, 20, 30, 40]" :page-size="size1" :current-page="page1"
        		layout="total,sizes, prev, pager, next,jumper" :total="tableDataZxsc.total">
        	</el-pagination>
        </div>
			</el-tab-pane>
			<!-- 不可提现添加金额 -->
			<el-dialog title="修改金额" :visible.sync="dialogFormVisible1" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">修改类型：</span>
					<el-radio-group v-model="type">
						<el-radio :label="1">添加</el-radio>
						<el-radio :label="2">减少</el-radio>
					</el-radio-group>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">金额：</span>
					<el-input style="width:50%;" v-model="money" type="number" :min="0" :max="100" :controls="false"
						placeholder="请输入金额"></el-input>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible1 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeTo1()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 修改手机号 -->
			<el-dialog title="修改手机号" :visible.sync="dialogFormVisible3" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">手机号：</span>
					<el-input style="width:50%;" v-model="contents" type="text" placeholder="请输入手机号"></el-input>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible3 = false">取 消</el-button>
					<el-button type="primary" @click="addGuanjianci()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 修改信息 -->
			<el-dialog title="修改信息" :visible.sync="dialogFormVisible4" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">昵称：</span>
					<el-input style="width: 50%;" v-model="nameUser" placeholder="请输入昵称"></el-input>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">头像：</span>
					<div
						style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
						<el-upload class="avatar-uploader" v-model="imageUser"
							:action="$http.adornUrlUp('alioss/upload')" :show-file-list="false"
							:on-success="handleAvatarSuccess1">
							<img v-if="imageUser" :src="imageUser" class="avatar" style="width: 148px;height: 148px;" />
							<i v-else class="el-icon-plus avatar-uploader-icon"
								style="font-size: 28px;color: #8c939d"></i>
						</el-upload>
					</div>
				</div>
				<!-- <div style="margin-bottom: 10px;">
          <span style="width: 200px;display: inline-block;text-align: right;">职业：</span>
          <el-input style="width: 50%;" v-model="occupation" placeholder="请输入职业"></el-input>
        </div> -->
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">年龄：</span>
					<el-input style="width: 50%;" v-model="age" placeholder="请输入年龄"></el-input>
				</div>
        <div style="margin-bottom: 10px;" v-if="">
        	<span style="width: 200px;display: inline-block;text-align: right;">师傅等级：</span>
          <el-radio-group v-model="riderLevel">
          	<el-radio :label="1">普通</el-radio>
          	<el-radio :label="2">优享</el-radio>
            <el-radio :label="3">超级优享</el-radio>
          </el-radio-group>
        </div>

				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible4 = false">取 消</el-button>
					<el-button type="primary" @click="phoneNoticeTo()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 修改年龄 -->
			<el-dialog :title="classTitle" :visible.sync="dialogFormVisible2" center>
				<div style="margin-bottom: 10px;" v-if="classType!=5">
					<span style="width: 200px;display: inline-block;text-align: right;">佣金比例：</span>
					<el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						:placeholder="classTitle"></el-input>
				</div>
				<div style="margin-bottom: 10px;" v-if="classType==5">
					<span style="width: 200px;display: inline-block;text-align: right;">省市区：</span>
					<!-- <el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						:placeholder="classTitle"></el-input> -->
					<el-cascader style="width:50%" size="large" :options="options" ref="cascaderAddr"
						v-model="storeAddress" :placeholder="storeAddre" @change="handleChange55" :value="storeAddre">
					</el-cascader>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible2 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeTo2()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 修改信用分 -->
			<el-dialog title="修改信用分" :visible.sync="dialogFormVisibleXyf" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">修改类型：</span>
					<el-radio-group v-model="type">
						<el-radio :label="1">添加</el-radio>
						<el-radio :label="2">减少</el-radio>
					</el-radio-group>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">信用分：</span>
					<el-input style="width:50%;" v-model="money" type="number" :min="0" :max="100" :controls="false"
						placeholder="请输入信用分"></el-input>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">理由：</span>
					<el-input style="width:50%;" v-model="content" type="textarea" :rows="4" :controls="false"
						placeholder="请输入理由"></el-input>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisibleXyf = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeToXyf()">确 定</el-button>
				</div>
			</el-dialog>
		</el-tabs>
	</div>
</template>

<script>
	import {
		provinceAndCityData,
		regionData,
		provinceAndCityDataPlus,
		regionDataPlus,
		CodeToText,
		TextToCode
	} from 'element-china-area-data'
	export default {
		data() {
			return {
				openValue: 1,
				closeValue: 0,
				state: 0,
				limit: 5,
				page: 1,
				userId: '',
				money: '',
				title: '',
				content: '',
				phone: '',
				startTime: '',
				endTime: '',
				invitationCode: '',
				feiDatamin: '',
				flag: 'day',
				flags: [{
					value: 'day',
					label: '按天查询'
				}, {
					value: 'month',
					label: '按月查询'
				}, {
					value: 'year',
					label: '按年查询'
				}],
				info: {
					stockDate: this.getNowTime(), //日期
				},
				info2: {
					stockDate2: this.getNowTime2(), //日期
				},
				tablejifen: '',
				autonymData: {},
				tablemoney: {},
				tablenum: {},
				tableData: {},
				userData: [],
				userDataJ: {},
				tableDatamin: [],
				withdrawData: [],
				walletData: [],
				rechargeData: [],
				sendData: [],
				takeData: [],
				redData: {},
				messageData: {},
				activeName: 'first',
				dialogFormVisible: false,
				dialogFormVisible1: false,
				tableDataLoading: true,
				relation_id: '',
				relationId: '',
				tkstatus: '',
				invitation: '',
				nowMonthOver: '',
				lastMonthOver: '',
				nowMonthPaid: '',
				lastMonthPaid: '',
				nowMonthOrderNumber: '',
				nowDayOrderNumber: '',
				hasCash: '',
				search: '',
				classifyIds: 0,
				statusId: -1,
				myPhone: '',
				campus: '',
				homeData1: [{
						label: '全部',
						value: ''
					},{
						value: 0,
						label: '满意'
					},
					{
						value: 1,
						label: '不满意'
					}
				],
				complaintState: '',
				statesnum: [{
						label: '全部',
						value: ''
					},
					{
						label: '可申诉',
						value: 1
					},
					{
						label: '不可申诉',
						value: 2
					},
					{
						label: '审核中',
						value: 3
					},
					{
						label: '审核未通过',
						value: 4
					},
					{
						label: '审核已通过',
						value: 5
					},
				],
				indentNumber: '',
				tableData2: {},
				tableData3: {},
				baozhengjinData: {},
				youhuiquanData: {},
				jifen: '',
				classIndex: '',
				type: '',
				contents: '',
				dialogFormVisible3: false,
				dialogFormVisible4: false,
				types: 1,
				nameUser: '',
				imageUser: '',
				age: '',
				occupation: '',
				// `````````
				classType: 0,
				classTitle: '',
				province: '',
				city: '', //市
				district: '', //区
				options: regionDataPlus,
				storeAddre: '请选择城市',
				storeAddress: [],
				dialogFormVisible2: false,
				age: '',
				dailituiguangData: {},
				classifys: 2,
				dizhiData: [],
				youhunajuan: '',
				youhunajuanoptions: [{
					//优惠券类型 0全部可用 1即时代 2朋友代叫 3预约代
					value: 0,
					label: '全部可用'
				}, {
					value: 1,
					label: '即时代驾'
				}, {
					value: 2,
					label: '朋友代叫'
				}, {
					value: 3,
					label: '预约代驾'
				}],
				statusyouhunjuan: '',
				statusyouhunjuanoptions: [{
					value: 0,
					label: '正常'
				}, {
					value: 1,
					label: '已使用'
				}, {
					value: 2,
					label: '已失效'
				}],
				fapiaoData: {},
				page2: 1,
				size2: 10,
				tableDataLoading4: false,
				dialogFormVisibleXyf: false,
				tableDataXyf:{},
        tableDataZxsc:{},
				size1:10,
				page1: 1,
        userType:'',
        riderLevel:'',
			}
		},
		methods: {
			// 返回上一级
			prev() {
				this.$router.back()
			},
			// 详情跳转
			updates(userId) {
				if (userId) {
					this.$router.push({
						path: '/userDetail1',
						query: {
							userId: userId
						}
					})
				}

			},
			handleAvatarSuccess1(file, fileList) {
				this.imageUser = file.data
			},
			//处理默认选中当前日期
			getNowTime() {
				var now = new Date()
				var year = now.getFullYear() //得到年份
				var month = now.getMonth() //得到月份
				var date = now.getDate() //得到日期
				month = month + 1
				month = month.toString().padStart(2, '0')
				date = date.toString().padStart(2, '0')
				var defaultDate = `${year}-${month}-${date}`
				return defaultDate
				this.$set(this.info, 'stockDate', defaultDate)
			},
			//处理默认选中当前日期
			getNowTime2() {
				var now = new Date()
				var year = now.getFullYear() //得到年份
				var month = now.getMonth() - now.getMonth() //得到月份
				var date = now.getDate() - now.getDate() + 1 //得到日期
				month = month + 1
				month = month.toString().padStart(2, '0')
				date = date.toString().padStart(2, '0')
				var defaultDate = `${year}-${month}-${date}`
				return defaultDate
				this.$set(this.info, 'stockDate', defaultDate)
			},
			// tabs切换
			handleClick(tab, event) {
				if (tab._props.label == '用户详情') {
					this.dataSelect()
				}
				if (tab._props.label == '直属') {
					this.limit = 10
					this.page = 1
					this.teamSelect()
				}
				if (tab._props.label == '非直属') {
					this.limit = 10
					this.page = 1
					this.feiSelect()
				}
				if (tab._props.label == '我的发布') {
					this.limit = 10
					this.page = 1
					this.InformationSelect()
				}
				if (tab._props.label == '我的接单') {
					this.limit = 10
					this.page = 1
					this.InformationSelect1()
				}

				if (tab._props.label == '我的消息') {
					this.state = 6
					this.userSelect()
				}
				if (tab._props.label == '提现记录') {
					this.limit = 10,
						this.page = 1,
						this.flag = ''
					this.withdrawSelect()
				}
				if (tab._props.label == '钱包明细') {
					this.limit = 10
					this.page = 1
					this.flag = ''
					this.walletSelect()
				}
				if (tab._props.label == '充值明细') {
					this.limit = 10
					this.page = 1
					this.flag = ''
					this.rechargeSelect()
				}
				if (tab._props.label == '保证金管理') {
					this.limit = 10
					this.page = 1
					this.flag = ''
					this.dataSelect1()
				}
				if (tab._props.label == '我的申诉') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.sendSelect()
				}
				if (tab._props.label == '我的发票') {
					this.limit = 10
					this.page = 1
					this.state = 8
					this.flag = ''
					this.userSelect()
				}
				if (tab._props.label == '我的评价') {
					this.page = 1
					this.limit = 10
					this.types = 1
					this.autonymSelect()
				}
				if (tab._props.label == '师傅的评价') {
					this.page = 1
					this.limit = 10
					this.types = 2
					this.autonymSelect()
				}
				if (tab._props.label == '收益统计') {
					this.page = 1
					this.limit = 10
					this.flag = ''
					this.taskData()
				}
				if (tab._props.label == '我的优惠券') {
					this.page = 1
					this.limit = 10
					this.youhuiquanSelect()
				}
				if (tab._props.label == '推广员收益明细') {
					this.limit = 10
					this.page = 1
					this.classifys = 2
					this.dailituiguangSelect()
				}
				if (tab._props.label == '代理商收益明细') {
					this.limit = 10
					this.page = 1
					this.classifys = 20
					this.dailituiguangSelect()
				}
				if (tab._props.label == '我的地址') {
					this.limit = 10
					this.page = 1
					this.dizhiSelect()
				}
				if (tab._props.label == '发票记录') {
					this.size2 = 10
					this.page2 = 1
					this.fapiaoList()
				}
				if (tab._props.label == '信用分明细') {
					this.size1 = 10
					this.page1 = 1
					this.xinyongSelect()
				}
        if (tab._props.label == '师傅在线时长') {
        	this.size1 = 10
        	this.page1 = 1
        	this.sfzxscSelect()
        }


			},
			// 消息推送
			magNotice() {
				this.dialogFormVisible = true
			},
			// 消息推送
			magNoticeTo() {
				if (this.title == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入标题',
						type: 'warning'
					})
					return
				}
				if (this.content == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入内容',
						type: 'warning'
					})
					return
				}
				this.$http({
					url: this.$http.adornUrl('cash/sendMsg'),
					method: 'get',
					params: this.$http.adornParams({
						'title': this.title,
						'content': this.content,
						'phone': this.phone,
						'flag': this.flag
					})
				}).then(({
					data
				}) => {
					this.dialogFormVisible = false
					if (data.code == -100) {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 1500,
							onClose: () => {
								this.title = ''
								this.content = ''
								this.userSelect()
							}
						})
					}
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.title = ''
								this.content = ''
								this.userSelect()
							}
						})
					}
				})
			},
			handleSizeChange(val) {
				this.limit = val
				this.teamSelect()
			},
			handleCurrentChange(val) {
				this.page = val
				this.teamSelect()
			},
			handleSizeChangeDl(val) {
				this.limit = val
				this.dailituiguangSelect()
			},
			handleCurrentChangeDl(val) {
				this.page = val
				this.dailituiguangSelect()
			},
			// 发单
			handleSizeChange1(val) {
				this.limit = val
				this.InformationSelect()
			},
			handleCurrentChange1(val) {
				this.page = val
				this.InformationSelect()
			},
			handleSizeChange2(val) {
				this.limit = val
				this.withdrawSelect()
			},
			handleCurrentChange2(val) {
				this.page = val
				this.withdrawSelect()
			},
			handleSizeChange3(val) {
				this.limit = val
				this.walletSelect()
			},
			handleCurrentChange3(val) {
				this.page = val
				this.walletSelect()
			},
			handleSizeChange4(val) {
				this.limit = val
				this.rechargeSelect()
			},
			handleCurrentChange4(val) {
				this.page = val
				this.rechargeSelect()
			},
			handleSizeChange5(val) {
				this.limit = val
				this.sendSelect()
			},
			handleCurrentChange5(val) {
				this.page = val
				this.sendSelect()
			},
			// 红包
			handleSizeChange6(val) {
				this.limit = val
				this.takeSelect()
			},
			handleCurrentChange6(val) {
				this.page = val
				this.takeSelect()
			},
			handleSizeChange7(val) {
				this.limit = val
				this.InformationSelect1()
			},
			handleCurrentChange7(val) {
				this.page = val
				this.InformationSelect1()
			},
			handleSizeChange8(val) {
				this.limit = val
				this.userSelect()
			},
			handleCurrentChange8(val) {
				this.page = val
				this.userSelect()
			},
			handleSizeChange9(val) {
				this.limit = val
				this.autonymSelect()
			},
			handleCurrentChange9(val) {
				this.page = val
				this.autonymSelect()
			},
			handleSizeChange10(val) {
				this.limit = val
				this.taskData()
			},
			handleCurrentChange10(val) {
				this.page = val
				this.taskData()
			},
			handleSizeChange11(val) {
				this.limit = val
				this.dataSelect1()
			},
			handleCurrentChange11(val) {
				this.page = val
				this.dataSelect1()
			},
			handleSizeChange12(val) {
				this.limit = val
				this.youhuiquanSelect()
			},
			handleCurrentChange12(val) {
				this.page = val
				this.youhuiquanSelect()
			},
			handleSizeChangeF(val) {
				this.size2 = val
				this.fapiaoList()
			},
			handleCurrentChangeF(val) {
				this.page2 = val
				this.fapiaoList()
			},
			handleSizeChangeXyf(val) {
				this.size1 = val
				this.xinyongSelect()
			},
			handleCurrentChangeXyf(val) {
				this.page1 = val
				this.xinyongSelect()
			},
      handleSizeChangeZxsc(val) {
      	this.size1 = val
      	this.sfzxscSelect()
      },
      handleCurrentChangeZxsc(val) {
      	this.page1 = val
      	this.sfzxscSelect()
      },
	  handleSizeChangeDz(val) {
	  	this.limit = val
	  	this.dizhiSelect()
	  },
	  handleCurrentChangeDz(val) {
	  	this.page = val
	  	this.dizhiSelect()
	  },

			timeDate2() {
				this.rechargeSelect()
			},
			animeDat1(state) {
				this.page = 1
				this.youhunajuan = state
				this.youhuiquanSelect()
			},
			animeDat2a(state) {
				this.page = 1
				this.statusyouhunjuan = state
				this.youhuiquanSelect()
			},
			cleansq() {
				this.page = 1
				this.youhunajuan = ''
				this.statusyouhunjuan = ''
				this.youhuiquanSelect()
			},
			// 可提现金额
			withdraw(id, val) {
				if (val == 0) {
					this.$message({
						message: '可提现金额为0元',
						type: 'error',
						duration: 1500,
						onClose: () => {
							this.dataSelect()
						}
					})
				} else {
					this.$confirm(`确定要推送提现消息吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.$http({
							url: this.$http.adornUrl(`user/notification/${id}`),
							method: 'post',
							data: this.$http.adornData({})
						}).then(({
							data
						}) => {
							this.$message({
								message: '推送成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.dataSelect()
								}
							})
						})
					}).catch(() => {})
				}

			},
			// 不可提现金额充值
			rechargenone(userId, index) {
				this.type = ''
				this.money = ''
				this.classIndex = index
				this.dialogFormVisible1 = true
			},
			StairNoticeTo1() {
				let userId = this.$route.query.userId
				if (this.type == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请选择修改类型',
						type: 'warning'
					})
					return
				}

				if (this.money == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入金额',
						type: 'warning'
					})
					return
				}
				if (this.classIndex == 1) {
					if (this.type == 2) {
						if (this.money > this.tablenum.balance) {
							this.$notify({
								title: '提示',
								duration: 1800,
								message: '最高金额为' + this.tablenum.balance,
								type: 'warning'
							})
							return
						}
					}
					this.$http({
						url: this.$http.adornUrl(`user/addCannotMoney/${userId}/${this.money}/${this.type}`),
						method: 'post',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.money = ''
									this.dataSelect()
								}
							})
							this.dialogFormVisible1 = false
						} else {
							this.$message.error(data.msg)
						}

					})
				}
				if (this.classIndex == 2) {
					this.$http({
						url: this.$http.adornUrl('adminerrand/updateCashDeposit?userId=' + userId + '&money=' +
							this.money +
							'&type=' + this.type),
						method: 'get',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.money = ''
									this.dataSelect()
								}
							})
							this.dialogFormVisible1 = false
						} else {
							this.$message.error(data.msg)
						}

					})
				}
				if (this.classIndex == 3) {
					this.$http({
						url: this.$http.adornUrl('user/updateUserMoney?userId=' + userId + '&money=' +
							this.money +
							'&type=' + this.type),
						method: 'get',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.money = ''
									this.dataSelect()
								}
							})
							this.dialogFormVisible1 = false
						} else {
							this.$message.error(data.msg)
						}

					})
				}

			},
			// 更改状态
			stateChange(val, userId) {
				console.log(val)
				if (val == 1) {
					var vals = 2
				} else if (val == 2) {
					var vals = 1
				}
				this.$confirm(`确定要更改用户状态吗?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('adminerrand/updateStatus?userId=' + userId + '&status=' +
							vals),
						method: 'post',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dataSelect()
							}
						})
					})
				}).catch(() => {})
			},
			// 获取数据列表
			dataSelect() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('adminerrand/findUserMessage'),
					method: 'get',
					params: this.$http.adornParams({
						'userId': userId
					})
				}).then(({
					data
				}) => {
					if (data.code === 0) {
						let returnData = data.data
						this.tablenum = returnData.userMessage
						this.tablemoney = returnData.userMoney
						this.tableData = returnData
						this.phone = returnData.phone
						this.invitationCode = returnData.invitationCode
					}
				})
			},
			// 获取团队成员
			teamSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('user/selectInviteByUserIdLists'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.tableDatamin = returnData
				})
			},
			// 非直属
			feiSelect() {
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('user/selectInvitationCodeByUserIdLists'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'invitationCode': this.invitationCode
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.feiDatamin = returnData
				})
			},
			// 获取用户/任务消息
			userSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('message/selectMessageByUserId'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'state': ''
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.messageData = returnData
				})
			},
			// 获取用户提现记录
			withdrawSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('adminerrand/findWithdrawMoney'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.withdrawData = returnData
				})
			},
			// 获取钱包明细
			walletSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('Details/queryUserMoneyDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'classify': '',
						'type': '',
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.walletData = returnData
				})
			},
			// 获取充值明细
			rechargeSelect() {
				if (this.endTime == '') {
					this.endTime = this.info.stockDate
				}
				if (this.startTime == '') {
					this.startTime = this.info2.stockDate2
				}
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('adminerrand/findTopUpMoney'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'endTime': this.endTime,
						'startTime': this.startTime,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.tableDataLoading = false
						let returnData = data.data
						this.rechargeData = returnData
					}
					if (data.code == 500) {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 2500,
							onClose: () => {
								this.tableDataLoading = false
							}
						})
					}
				})
			},
			// 获取申诉
			sendSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('adminerrand/findAllAppeal'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'indentNumber': this.indentNumber,
						'complaintState': this.complaintState,
						'illegalId': '',
						'userId': userId
					})
				}).then(({
					data
				}) => {
					if (data && data.code === 0) {
						this.tableDataLoading = false
						let returnData = data.data
						this.sendData = returnData
					}
				})
				// this.$http({
				// 	url: this.$http.adornUrl('help/selectRunHelpOrder'),
				// 	method: 'get',
				// 	params: this.$http.adornParams({
				// 		'page': this.page,
				// 		'limit': this.limit,
				// 		'status': this.state,
				// 		'userId': userId
				// 	})
				// }).then(({
				// 	data
				// }) => {
				// 	this.tableDataLoading = false
				// 	let returnData = data.data
				// 	this.sendData = returnData
				// })
			},
			// 我的评价
			autonymSelect() {
				let userId = this.$route.query.userId
				if (this.types == 1) {
					var userid1 = userId
					var userid2 = ''
				} else {
					var userid1 = ''
					var userid2 = userId
				}
				this.$http({
					url: this.$http.adornUrl('adminevaluate/selectEvaluate'),
					method: 'get',
					params: this.$http.adornParams({
						'userId': userid1,
						'page': this.page,
						'limit': this.limit,
						'satisfactionFlag': this.campus,
						'indentNumber': '',
						'nickName': '',
						'riderName': '',
						'riderUserId': userid2,
					})
				}).then(({
					data
				}) => {

					this.tableDataLoading = false
					let returnData = data.data
					this.autonymData = returnData
				})
			},
			// 筛选信息
			animeDat2(state) {
				this.autonymSelect()
			},
			// 我的发布信息数据
			InformationSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl(`adminerrand/findUserAddIndent`),
					method: 'get',
					params: this.$http.adornParams({
						'userId': userId,
						'page': this.page,
						'limit': this.limit,
						// 'search': this.search,
						// 'classify':this.classifyIds,
						// 'status':this.statusId,
						// 'phone':this.myPhone
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					for (var i in data.data.records) {
						if (data.data.records[i].img) {
							data.data.records[i].imgs = data.data.records[i].img.split(',')
						}

					}
					let returnData = data.data
					this.userData = returnData


				})
			},
			// 我的接单
			InformationSelect1() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl(`adminerrand/findUserReceivingIndent`),
					method: 'get',
					params: this.$http.adornParams({
						'userId': userId,
						'page': this.page,
						'limit': this.limit,
						// 'search': this.search,
						// 'classify':this.classifyIds,
						// 'status':this.statusId,
						// 'phone':this.myPhone
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					for (var i in data.data.records) {
						if (data.data.records[i].img) {
							data.data.records[i].imgs = data.data.records[i].img.split(',')
						}

					}
					let returnData = data.data
					this.userDataJ = returnData


				})
			},
			// 查询
			phoneSelect() {
				this.page = 1
				this.InformationSelect()
			},
			// 重置
			cleans2() {
				this.status = -1
				this.classify = 0
				this.phone = ''
				this.search = ''
				this.page = 1
				this.InformationSelect()
			},
			// 查询资源列表
			select() {
				this.page = 1
				this.limit = 10
				this.sendSelect()
			},
			// 重置资源列表
			cleans() {
				this.indentNumber = ''
				this.complaintState = ''
				this.page = 1
				this.sendSelect()
			},
			// select选择事件
			animeDat(state) {
				this.page = 1
				this.complaintState = state
				console.log(state)
				this.sendSelect()
			},
			// 订单分析选择日期
			animeOrder() {
				console.log('info', this.info)
				this.taskData()
				// this.colonel()
			},
			// 订单分析年月日
			orderfenxi(value) {
				this.page = 1
				let vanumber = value
				this.flag = value
				this.taskData()

			},
			//任务分析
			taskData() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('adminerrand/findIncome'),
					method: 'get',
					params: this.$http.adornParams({
						'date': this.info.stockDate,
						'dateType': this.flag,
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tableData2 = returnData;
					this.tableData3 = returnData.pageUtils;
				})
			},
			// 获取数据列表
			dataSelect1() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('adminerrand/selectCashDeposit'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'type': '',
						'phone': '',
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.baozhengjinData = returnData
				})
			},
			// 我的优惠券
			youhuiquanSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					//page=&limit=&userId=&couponType=&status=
					url: this.$http.adornUrl('admin/couponUser/getMyCouponList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'couponType': this.youhunajuan,
						'status': this.statusyouhunjuan,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					console.log(data)
					this.tableDataLoading = false
					let returnData = data.data
					this.youhuiquanData = returnData
				})
			},
			// 修改手机号
			ageChangeP(userId, phone) {
				this.contents = phone
				this.dialogFormVisible3 = true
			},
			addGuanjianci() {
				let userId = this.$route.query.userId

				this.$http({
					url: this.$http.adornUrl('adminerrand/updateCertification'),
					method: 'post',
					data: this.$http.adornData({
						'userId': userId,
						'phone': this.contents,
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisible3 = false
								this.dataSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			userChange(row) {
				console.log(row, 'zhiuy ')
				this.imageUser = row.avatar
				this.nameUser = row.nickName
				this.userId = row.userId
				this.age = row.age
				this.occupation = row.occupation
        this.userType = Number(row.userType)
        this.riderLevel = row.riderLevel

				this.dialogFormVisible4 = true
			},
			phoneNoticeTo() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('user/updateUserByUserId'),
					method: 'post',
					// params: this.$http.adornParams({
					data: this.$http.adornData({
						'userId': userId,
						'avatar': this.imageUser,
						'nickName': this.nameUser,
						'age': this.age,
						'occupation': this.occupation,
            'riderLevel':this.riderLevel,
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisible4 = false
								this.dataSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {
								this.dataSelect()
							}
						})
					}

				})
			},
			ageChange(index, userId, age) {
				this.classType = index
				this.age = age
				this.province = ''
				this.city = ''
				this.district = ''
				if (index == 6) {
					this.classTitle = '师傅佣金比例'
					this.dialogFormVisible2 = true
				}
				if (index == 0) {
					this.classTitle = '一级佣金比例'
					this.dialogFormVisible2 = true
				}
				if (index == 1) {
					this.classTitle = '二级佣金比例'
					this.dialogFormVisible2 = true
				}
				if (index == 2) {
					this.$confirm(`确定要修改实名状态吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.StairNoticeTo2()
					}).catch(() => {})

				}
				if (index == 3) {
					this.$confirm(`确定要更改代理商状态吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.StairNoticeTo2()
					}).catch(() => {})
				}
				if (index == 4) {
					this.classTitle = '年龄'
					this.dialogFormVisible2 = true
				}
				if (index == 5) {

					this.classTitle = '省市区'
					this.dialogFormVisible2 = true
				}
			},
			StairNoticeTo2() {
				let userId = this.$route.query.userId
				let datas = {}
				datas.userId = userId
				if (this.classType == 6) {
					datas.rate = this.age
				}
				if (this.classType == 0) {
					datas.divideScale = this.age
				}
				if (this.classType == 1) {
					datas.divideTwoScale = this.age
				}
				if (this.classType == 2) {
					if (this.age == 1) {
						this.age = 2
					} else {
						this.age = 1
					}
					datas.checkCertification = this.age
				}
				if (this.classType == 3) {
					if (this.age == 1) {
						this.age = 0
					} else {
						this.age = 1
					}
					datas.isAgent = this.age
				}
				if (this.classType == 4) {
					datas.age = this.age
				}
				if (this.classType == 5) {
					if (this.city == '') {
						datas.province = this.province
						datas.city = ''
						datas.district = ''
					} else if (this.district == '') {
						datas.province = this.province
						datas.city = this.city
						datas.district = ''
					} else {
						datas.province = this.province
						datas.city = this.city
						datas.district = this.district
					}
				}
				this.$http({
					url: this.$http.adornUrl('user/updateUserByUserId'),
					method: 'post',
					data: this.$http.adornData(datas)
				}).then(({
					data
				}) => {
					console.log('data', data)
					this.$message({
						message: '修改成功',
						type: 'success',
						duration: 1500,
						onClose: () => {
							this.dialogFormVisible2 = false
							this.dataSelect()
						}
					})
				})
			},
			// 代理商/推广员收益明细
			dailituiguangSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('Details/queryUserMoneyDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'classify': this.classifys,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.dailituiguangData = returnData
				})
			},
			// 我的地址
			dizhiSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('admin/address/getAddressList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.dizhiData = returnData
				})
			},
			// 发票记录
			fapiaoList() {
				this.tableDataLoading4 = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('admin/invoice/adminGetIndentList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						// 'userName': this.userName,
						// 'companyName': this.companyName,
						'indentNumber': '',
						// 'content': this.content,
						'phone': '',
						'status': '',
						'startTime': '',
						'endTime': '',

					})
				}).then(({
					data
				}) => {
					this.tableDataLoading4 = false
					let returnData = data.data
					this.fapiaoData = returnData
				})
			},
			// 修改信用分弹框
			creditScoreChange(row) {
				this.type = ''
				this.money = ''
				this.content = ''
				this.dialogFormVisibleXyf = true
			},
			StairNoticeToXyf() {
				let userId = this.$route.query.userId
				if (this.type == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请选择修改类型',
						type: 'warning'
					})
					return
				}

				var jia = this.tablenum.creditScore + Number(this.money)
				var jian = this.tablenum.creditScore - Number(this.money)
				if (this.money == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入分数',
						type: 'warning'
					});
					return
				}
				console.log(jia)
				if(this.type == 1){
					if (jia > 10) {
						this.$notify({
							title: '提示',
							duration: 1800,
							message: '信用分最高为10',
							type: 'warning'
						});
						return
					}
				}
				if(this.type == 2){
					if (jian < 0) {
						this.$notify({
							title: '提示',
							duration: 1800,
							message: '信用分最低为0',
							type: 'warning'
						});
						return
					}
				}
				if (this.content == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入理由',
						type: 'warning'
					})
					return
				}
				if (this.content.length >100) {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '修改原因字数不能超过100字',
						type: 'warning'
					});
					return
				}
				this.$http({
					url: this.$http.adornUrl('user/updateUserCredit'),
					method: 'post',
					params: this.$http.adornParams({
						'userId': userId,
						'type': this.type,
						'score': this.money,
						'remark': this.content
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dataSelect()
							}
						})
						this.dialogFormVisibleXyf = false
					} else {
						this.$message.error(data.msg)
					}

				})
			},
			// 信用分明细数据
			xinyongSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('admin/creditRecord/getCreditRecordList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'riderUserName': '',
						'riderUserId':userId,
						'userId': userId,
						'riderPhone': ''
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.tableDataLoading = false
						let returnData = data.data
						this.tableDataXyf = returnData
					} else {
						this.$notify({
							title: '提示',
							duration: 1800,
							message: data.msg,
							type: 'warning'
						});
					}
				})
			},
      // 师傅在线时长数据
      sfzxscSelect() {
      	let userId = this.$route.query.userId
      	this.tableDataLoading = true
      	this.$http({
      		url: this.$http.adornUrl('admin/riderLine/getRiderLineList'),
      		method: 'get',
      		params: this.$http.adornParams({
      			'page': this.page,
      			'limit': this.limit,
      			'userId': userId,
      		})
      	}).then(({
      		data
      	}) => {
      		if (data.code == 0) {
      			this.tableDataLoading = false
      			let returnData = data.data
      			this.tableDataZxsc = returnData
      		} else {
      			this.$notify({
      				title: '提示',
      				duration: 1800,
      				message: data.msg,
      				type: 'warning'
      			});
      		}
      	})
      },

		},
		mounted() {
			this.dataSelect()
		},
	}
</script>

<style scoped="scoped">
	.detailtabel h2 {
		margin-top: 0;
	}

	.detailtabel .table_main table {
		width: 100%;
	}

	.detailtabel .table_main {
		border: 1px solid #e8e8e8;
	}

	.detailtabel table tr {
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr th {
		background-color: #fafafa;
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr td {
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table th {
		color: rgba(0, 0, 0, .85);
		font-weight: 400;
		font-size: 14px;
		line-height: 1.5;
	}

	.border-rt {
		border-right: none !important;
	}

	.border-bt {
		border-bottom: none !important;
	}

	.box {
		padding: 44px;
		border: 1px solid #eee;
		margin: 15px 10px;
	}

	.box_num {
		font-size: 14px;
		color: #66b1ff;
	}

	.box_num .box_color {
		color: #333;
		font-size: 14px;
		margin-bottom: 15px;
	}

	.box_num div span {
		font-size: 20px;
		margin-left: 5px;
	}

	.text_color {
		color: #4f9dec;
	}

	.text_color span {
		margin-right: 5px;
	}
</style>
